mod class;

use std::sync::{Arc, Mutex};

use model_graph_common::transport::http::http_get;

use model_graph_types::{
    container::workflow::{
         ListOperatorStatement, MetaOperatorStatement,
        WorkflowBlockExecuteResult,
    },
    modeling::Value,
};

use crate::workflow::context::WorkflowContext;

pub async fn execute(
    statement: &MetaOperatorStatement,
    context: Arc<Mutex<WorkflowContext>>,
) -> anyhow::Result<WorkflowBlockExecuteResult> {
    //
    let class_type = &statement.class_type;

    if class_type == "class" {
        return class::execute(statement, context).await;
    }

    Ok(WorkflowBlockExecuteResult::succeed())
}
